package com.platform.api.bzproject.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.platform.api.bzproject.model.BzAllWallpaper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author guoyunfei on 2021/9/25 15:31
 * @className BzAllWallpaperMapper
 * @description TODO
 * @Version 1.0
 */


public interface BzAllWallpaperMapper extends BaseMapper<BzAllWallpaper> {

    List<BzAllWallpaper> selectAllWallpaper(BzAllWallpaper wallpaper);

    int getUploadCount(String openid);

    //查询前后一条记录  按照时间查询
    BzAllWallpaper getLimitOneLeft(Map<String,Object> map);
    BzAllWallpaper getLimitOneRight(Map<String,Object> map);

    int updateDownCount(Long wId);

    List<BzAllWallpaper> getAllUserData();

    int updateAllUserData(List<BzAllWallpaper> list);

    List<Integer> getUserClassIds(@Param("userId") String userId);

}
